package it.apiconsulting.wot.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_logged")
public class Logged implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;
	
    private Long id;
    private Long idUtente;
    private Timestamp loginDate;
    private Timestamp logoutDate;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	
	@Column(name="id_utente")
	public Long getIdUtente() {
		return idUtente;
	}
	
	@Column(name="login_date")
	public Timestamp getLoginDate() {
		return loginDate;
	}
	
	@Column(name="logout_date")
	public Timestamp getLogoutDate() {
		return logoutDate;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public void setIdUtente(Long idUtente) {
		this.idUtente = idUtente;
	}
	
	public void setLoginDate(Timestamp loginDate) {
		this.loginDate = loginDate;
	}
	
	public void setLogoutDate(Timestamp logoutDate) {
		this.logoutDate = logoutDate;
	}
}
